package com.drools.examples;

import com.drools.entity.Message;
import com.drools.entity.People;
import com.drools.utils.RuleEngine;
import com.drools.utils.RuleEngineImpl;
import java.io.IOException;

/**
 * Created by LANCHUNQIAN on 2016/10/18.
 */
public class DRLTest {

    public static void main(String str[]) throws IOException {
        RuleEngine pointRuleEngine = new RuleEngineImpl();

        pointRuleEngine.initEngine();

        Message message = new Message("Hello World", Message.HELLO);
        pointRuleEngine.executeRuleEngine(message);

        People people = new People("lcq",30,1234,1000);
        pointRuleEngine.executeRuleEngine(people);
    }
}
